package com.wms.controller;

import com.wms.bean.ResultBean;
import com.wms.core.R;
import com.wms.service.OutTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


@Api(tags = "出货导出Excel")
@RestController
public class OutTaskMapperController {

    @Autowired
    OutTaskService outTaskService;

    @ApiOperation("每N时记录最近N天出货记录")
    @GetMapping("/export")
    public ResultBean export(){
        outTaskService.generateReport();
        return R.success("ok");
    }
    @ApiOperation("报表查询")
    @GetMapping("/baobiao")
    public ResultBean baobiao(){
        List<Map<String,Object>> list=outTaskService.baobiao();
        return R.success("报表展示",list);
    }
}
